package rubymatic;

import java.io.Serializable;
import java.util.Map;

import org.hibernate.engine.SessionImplementor;
import org.hibernate.proxy.AbstractLazyInitializer;

import org.jruby.runtime.builtin.IRubyObject;


public class RubyLazyInitializer extends AbstractLazyInitializer implements Serializable {

	RubyLazyInitializer(String entityName, Serializable id, SessionImplementor session) {
		super(entityName, id, session);
	}

	public IRubyObject getRubyObject() {
		return (IRubyObject)getImplementation();
	}

	public Class getPersistentClass() {
		throw new UnsupportedOperationException("dynamic-map entity representation");
	}

}
